package com.cloudlinkscm.base.authcenter.model.dto;

import java.util.List;

/**
 * Created by sin on 2017/8/7.
 *
 * Tree
 */
public class ResourceTree<T> {

	public static final String TREE_ROOT = "root";

	private String title;

	private T data;

	private List<ResourceTree> children;

	@Override
	public String toString() {
		return "ResourceTree{" +
				"title='" + title + '\'' +
				", data=" + data +
				", children=" + children +
				'}';
	}

	public static String getTreeRoot() {
		return TREE_ROOT;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public List<ResourceTree> getChildren() {
		return children;
	}

	public void setChildren(List<ResourceTree> children) {
		this.children = children;
	}
}
